package data;

public class Battler {
	public int maxhp;
	public int curhp;
	public String name;
	public int[] at;
	private int index = 0;
	public Battler(int maxhp,int curhp,String name,int[] at) {
		if (at.length < 1) 
			at = new int[]{0};
		
		this.maxhp = maxhp;
		this.curhp = curhp;
		this.name = name;
		this.at = at;
		index = 0;
	}
	public int nextAttack() {
		int dam = at[index];
		if (++index > at.length-1)
			index = 0;
		return dam;
	}
}
